<?php

namespace App\Models;



use Illuminate\Database\Eloquent\Relations\HasOne;
use Spatie\EloquentSortable\Sortable;
use Spatie\EloquentSortable\SortableTrait;

class JobPositionUpdateModel extends AbstractBaseModel
{
    protected $table = 'job_position_update';

    protected $casts = [
        'content' => 'json',
    ];
    const STATUS_LIST = [
        1=>'待处理',
        2=>'已修改',
        3=>'驳回',
    ];

    /**
     * 职位信息
     * @return HasOne
     */
    public function jobPositionInfo(): HasOne
    {
        return $this->HasOne(JobpositionModel::class, 'id', 'job_position_id');
    }

}
